import request from "../../utils/request"

export default {
    getMyHouse(hphone){
        return request({
            url:"/getMyHouse",
            method: 'get',
            params: {
                hphone:hphone,
            }
        })
    },
    updateHouseState(address,state){
        return request({
            url:"/updateHouseState",
            method:'post',
            params: {
                address:address,
                state:state
            }
        })
    },
    submitRepairForm(address,description){
        return request({
            url:"/submitRepairForm",
            method:'post',
            params:{
                address:address,
                description:description
            }
        })
    },
    insertMyHouseInfo(hphone,type,livenum,rent,address,state){
        return request({
            url:"/insertMyHouseInfo",
            method:'post',
            params:{
                hphone:hphone,
                type:type,
                livenum:livenum,
                rent:rent,
                address:address,
                state:state
            }
        })
    },
    deleteThisHouse(hphone,address,livenum){
        return request({
            url:"/deleteThisHouse",
            method:'post',
            params:{
                hphone:hphone,
                address:address,
                livenum:livenum
            }
        })
    }
}